
package jtrimet.android.widget;

import android.view.View;
import android.view.ViewGroup;
import java.util.*;

public abstract class AbstractListAdapter extends android.widget.BaseAdapter
{
	private List data;
	
	public AbstractListAdapter(List l)
	{
		super();
		this.data = l;
	}
	
	public int getCount()
	{
		return data.size();
	}

	public Object getItem(int position)
	{
		return data.get(position);
	}

	public long getItemId(int position)
	{
		return position;
	}

	abstract public View getView(int position, View convertView, ViewGroup parent);

}
